<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="keywords" content="LightYear,LightYearAdmin,光年,后台模板,后台管理系统,光年HTML模板">
<meta name="description" content="Light Year Admin V5是一个基于Bootstrap v5.1.3的后台管理系统的HTML模板。">
<title>首页 - 后台管理系统模板</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="stylesheet" type="text/css" href="css/materialdesignicons.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.min.css">
<!--对话框插件css-->
<link rel="stylesheet" type="text/css" href="js/jquery-confirm/jquery-confirm.min.css">
<style>
td>span{
	color: darkgreen;
}
</style>
</head>
  
<body>
<div class="container-fluid">
  <div class="row">
  	<div class="col-lg-12">
  	  <div class="card">
  	    <header class="card-header">
  	      <div class="card-title">
			<span>成绩查询记录</span>
			<span style="float: right;" id="logtext"></span>
		  </div>
  	    </header>
  		<div class="card-body">
  		  <div class="table-responsive">
  		    <table class="table table-hover">
  		      <thead>
  		        <tr>
  		          <th>#</th>
  		          <th>查询时间</th>
  		          <th>身份证</th>
  		          <th>在册班级</th>
  		          <th>姓名</th>
  		          <th>查询IP</th>
  		          <th>查询批次</th>
  		        </tr>
  		      </thead>
  			  <tbody>
				
			  </tbody>
            </table>
  	      </div>
  	    </div>
  	  </div>
    </div>
  </div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/popper.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/chart.min.js"></script>
<!-- 数字动态滚动增加效果 -->
<script type="text/javascript" src="js/scroll-numbers.js"></script>
<!--引入chart插件js-->
<script type="text/javascript" src="js/main.min.js"></script>

<!--对话框插件js-->
<script type="text/javascript" src="js/jquery-confirm/jquery-confirm.min.js"></script>
<script type="text/javascript">
$(document).ready(function(e) {
	function reload(){
		$.post('http://i.fe80.cn/shubao/score/querylist',{},function(res){
			if(res.list){
				$.each(res.list,function(index,item){
					let html = `<tr>
						<td>`+(index+1)+`</td>
						<td>`+item.datetime+`</td>
						<td>`+item.id_card+`</td>
						<td>`+item.grade+'级'+item.infoclass+`</td>
						<td>`+item.name+`</td>
						<td>`+item.ip+`</td>
						<td>`+item.issue+`</td>`+
					`</tr>`;
					$('tbody').append(html);
				});
				var log = '查询人数：'+res.cnt_id+'，查询终端数：'+res.cnt_ip+'，查询总次数：'+res.cnt_times;
				$("#logtext").text(log);
			}
		});
	}
	reload();
});
</script>
</body>
</html>